package cc.yugu.yhdw.webserver.persistence.hdw;

import cc.yugu.yhdw.common.domain.hdw.AgencyInOutMoney;
import cc.yugu.yhdw.common.persistence.MasterMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * 代理商资金流水信息
 *
 * @Date:Created in 2018/6/29 16:49
 * @Author:
 * @Modified By: zjn 2018/6/29 16:49
 */
public interface AgencyInOutMoneyMapper extends MasterMapper {
    /**
    * 根据代理商id查询表hdw_agency_in_out_money ，并返回行数
    *
    * @Param: [search]
    * @Return: int
    * @Author By: zjn 2018/6/29  16:50
    */
    public int findPageCount(AgencyInOutMoney search);
    /**
    * 分页查询，将查询结果按照 创建时间降序排列
    *
    * @Param: [search]
    * @Return: java.util.List<cc.yugu.yhdw.common.domain.hdw.AgencyInOutMoney>
    * @Author By: zjn 2018/6/29  17:24
    */
    public List<AgencyInOutMoney> findPageResult(AgencyInOutMoney search);

//    public int findPageCounts(AgencyInOutMoney search);
//
//    public List<AgencyInOutMoney> findPageResults(AgencyInOutMoney search);

    /**
    * 新增：
    *
    * @Param:
    * @Return:
    * @Author By: zjn 2018/8/17  16:22
    */
    public List<AgencyInOutMoney> find(@Param("agencyId") Integer agencyId, @Param("bizType") Integer bizType);

    /**
    * 删除
    *
    * @Param: [agentId]
    * @Return: int
    * @Author By: zjn 2018/6/29  17:27
    */
    public int deleteByAgent(int agentId);
    /**
    * 插入
    *
    * @Param: [record]
    * @Return: int
    * @Author By: zjn 2018/6/29  17:27
    */
    public int insert(AgencyInOutMoney record);
    /**
    * 删除
    *
    * @Param: [agencyId]
    * @Return: int
    * @Author By: zjn 2018/6/29  17:28
    */
    public int deleteByAgency(int agencyId);
}
